
f = open("\\\\.\\PhysicalDrive1","r+b")
f.seek(0)
a = [0xaa]*512
b = bytearray(a)
f.write(b)
f.read(512)
f.close()